﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RM.Entities;

namespace RM.Web.Services
{
    // NOTE: If you change the interface name "ICandidateService" here, you must also update the reference to "ICandidateService" in Web.config.
    [ServiceContract]
    public interface ICandidateService
    {
        [OperationContract(Name = "Candidate_GetAll")]
        IList<Candidate> GetAll();

        [OperationContract(Name = "Candidate_GetAllBySearch")]
        IList<Candidate> GetAllBySearch(string searchString);

        [OperationContract(Name = "Candidate_Save")]
        void Save(Candidate candidate);

        [OperationContract(Name = "Candidate_Update")]
        void Update(Candidate candidate);

        [OperationContract(Name = "Candidate_GetById")]
        Candidate GetById(int candidateId);
    }
}
